package com.hx01.modules.app.exception;


import com.baomidou.mybatisplus.extension.api.IErrorCode;

/**
 * 公共异常类型枚举
 * zhangguojian
 */
public enum AppErrorCode implements IErrorCode {
	TEST(508, "测试.");

	private final long code;
	private final String msg;

	AppErrorCode(long code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	@Override
	public long getCode() {
		return this.code;
	}

	@Override
	public String getMsg() {
		return this.msg;
	}

	@Override
	public String toString() {
		return String.format("Code:[%s], Description:[%s].", this.code, this.msg);
	}
}
